<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-miner_id" data-rule="required" data-source="miner/index" class="form-control selectpage" name="row[miner_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_cat')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-miner_cat" class="form-control selectpicker" name="row[miner_cat]">
                {foreach name="minerCatList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-miner_type" class="form-control selectpicker" name="row[miner_type]">
                {foreach name="minerTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-miner_number" class="form-control" name="row[miner_number]" type="number" value="1">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Output_value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-output_value" class="form-control" step="0.00001" name="row[output_value]" type="number" value="0.00000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Arithmetic_value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-arithmetic_value" class="form-control" step="0.00001" name="row[arithmetic_value]" type="number" value="0.00000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sum_earnings')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sum_earnings" class="form-control" step="0.00001" name="row[sum_earnings]" type="number" value="0.00000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Run_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-run_cycle" class="form-control" name="row[run_cycle]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Runed_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-runed_cycle" class="form-control" name="row[runed_cycle]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-buy_type" class="form-control selectpicker" name="row[buy_type]">
                {foreach name="buyTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Statistics_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statisticsStatusList" item="vo"}
            <label for="row[statistics_status]-{$key}"><input id="row[statistics_status]-{$key}" name="row[statistics_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
